< previous page page_353 next page >

Page 353
Designing the Report
Of course, like anything else in the application process, designing reports requires some thought before actually creating them. For each report that you are creating, you should answer the following questions:
8694cbadb9b1ef7075903f6f95fc1db2.gif
What is the function of the report?
8694cbadb9b1ef7075903f6f95fc1db2.gif
What data will be included on the report?
8694cbadb9b1ef7075903f6f95fc1db2.gif
Does it need filter capabilities?
8694cbadb9b1ef7075903f6f95fc1db2.gif
What will be the layout of the report?
If you have the answers to these questions, your reports will perform well. Before starting Crystal Reports, you should sketch out what the report will look like and also list the fields needed for the report. The report that you design in this section will use the address book database discussed earlier in the week. An address book application usually needs several types of reports, including mailing label, phone lists, and a complete address book report.
Although you will learn enough about Crystal Reports to create most reports you need, this chapter is really meant to show you how to integrate Crystal Reports into an application while providing the user with several advanced features. The report that we will be creating is the address/phone list report, which will contain the following information:
8694cbadb9b1ef7075903f6f95fc1db2.gif
Name
8694cbadb9b1ef7075903f6f95fc1db2.gif
Address
8694cbadb9b1ef7075903f6f95fc1db2.gif
City
8694cbadb9b1ef7075903f6f95fc1db2.gif
State
8694cbadb9b1ef7075903f6f95fc1db2.gif
ZIP
8694cbadb9b1ef7075903f6f95fc1db2.gif
Home Phone
8694cbadb9b1ef7075903f6f95fc1db2.gif
Office Phone, if any
Although this is a fairly simple report, it will enable you to learn the necessary skills to create any type of report. After you have listed the fields, the next step is to sketch the layout of the report.
After you are satisfied with the layout, the next step is to start Crystal Reports. There are two ways to start it, either from the Visual Basic menu or the Windows 95 Start menu. If you are primarily working on reports, you might consider shutting Visual Basic until you need it, and run Crystal Reports from the Start menu. Once started, you are placed in the main window as shown earlier in Figure 13.1.

 
< previous page page_353 next page >

If you like this book, buy it!